﻿using System;
using System.Windows.Forms;
using System.Threading;
using ServerEngine;

namespace WorldOfMUDra
{
    public partial class fServerLauncher : Form
    {
        Thread serverThread;

        public static Server mainServer = new Server(1234);

        public fServerLauncher()
        {
            InitializeComponent();
            Win32.AllocConsole();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            serverThread = new Thread(mainServer.Start);
            serverThread.Start();
            button1.Enabled = false;
        }
    }
}
